cmake_minimum_required(VERSION 3.2)
project(ormpp)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++17")
SET(ENABLE_MYSQL ON)
SET(ENABLE_PG OFF)
SET(ENABLE_SQLITE3 OFF)

#set(INC_DIR "C:\\Program Files\\MySQL\\MySQL Server 5.6")
#set(LINK_DIR "C:\\Program Files\\MySQL\\MySQL Server 5.6\\lib")
#include_directories(${INC_DIR})
#link_directories(${LINK_DIR})
#link_libraries("C:\\Program Files\\MySQL\\MySQL Server 5.6\\lib\\libmysql.lib")

if (ENABLE_MYSQL)
    add_definitions(-DORMPP_ENABLE_MYSQL)
#    set(SOURCE_FILES main.cpp dbng.hpp unit_test.hpp pg_types.h
#            type_mapping.hpp utility.hpp entity.hpp mysql.hpp
#            connection_pool.hpp ormpp_cfg.hpp)
endif()

INCLUDE_DIRECTORIES(./iguana )

add_executable(mymain mymain.cpp)
#add_executable(ormpp ${SOURCE_FILES})
#if (ENABLE_MYSQL)
#target_link_libraries(ormpp mysqlclient)
#endif()

